// less/components/itemInfo.less
@import "../variables.less";

.main_container {
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: @color-disabled;
  padding: 20px 0;

  h1 {
    margin: 0 0 10px;
    color: @color-text;
    font-size: 24px;
    font-weight: 600;
  }

  .info-container {
    width: 90%;
    background-color: @color-white;
    margin: 20px auto;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
    transition: all 0.3s;
	display: flex;
	justify-content: space-around;

    &:hover {
      box-shadow: 0 4px 16px 0 rgba(0,0,0,0.15);
    }

    .info-image {
      flex-shrink: 0;
      .image {
        border-radius: 8px;
        border: 1px solid @color-border;
        padding: 8px;
        background: @color-white;
      }
    }

    .info-content {
      flex: 1;
      
      ::v-deep .el-divider {
        background-color: @color-border;
        margin: 16px 0;
      }

      .description {
        ::v-deep .el-descriptions__body {
          background: @color-disabled;
          
          .el-descriptions-item__label {
            color: @color-subtext;
            .el-icon {
              color: @color-primary;
              margin-right: 5px;
            }
          }
          
          .el-descriptions-item__content {
            color: @color-text;
            font-weight: 500;
          }
        }
      }
    }
  }

  .recipe-container {
    width: 90%;
    background-color: @color-white;
    margin: 20px auto;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);

    ::v-deep .el-tabs {
      .el-tabs__header {
        margin: 0 0 15px;
        
        .el-tabs__item {
          font-size: 16px;
          color: @color-subtext;
          
          &.is-active {
            color: @color-primary;
            font-weight: 500;
          }
        }
        
        .el-tabs__active-bar {
          background-color: @color-primary;
        }
      }
    }

    .table {
      .show {
        background-color: @color-white;
        margin: 15px 0;
        border-radius: 8px;
        padding: 16px;
        transition: transform 0.3s;
        
        &:hover {
          transform: translateY(-3px);
        }
      }
    }
  }
}

// 响应式样式
@media (max-width: 768px) {
  .item-info-container {
    .info-container {
      flex-direction: column;
      padding: 16px;
      
      .info-image {
        text-align: center;
      }
      
      .info-content {
        width: 100%;
      }
    }
    
    .recipe-container {
      padding: 10px;
    }
  }
}